Optimal. Leaf size=54 \[ -\frac{\sin ^{n+1}(c+d x) (a \sin (c+d x)+a)^{m+1} \, _2F_1(1,m+n+2;m+2;\sin (c+d x)+1)}{a d (m+1)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0778548, antiderivative size = 61, normalized size of antiderivative = 1.13, number of steps used = 3, number of rules used = 3, integrand size = 27, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.111, Rules used = {2833, 66, 64} \[ \frac{(\sin (c+d x)+1)^{-m} \sin ^{n+1}(c+d x) (a \sin (c+d x)+a)^m \, _2F_1(-m,n+1;n+2;-\sin (c+d x))}{d (n+1)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2833
Rule 66
Rule 64
Rubi steps
\begin{align*} \int \cos (c+d x) \sin ^n(c+d x) (a+a \sin (c+d x))^m \, dx &=\frac{\operatorname{Subst}\left (\int \left (\frac{x}{a}\right )^n (a+x)^m \, dx,x,a \sin (c+d x)\right )}{a d}\\ &=\frac{\left ((1+\sin (c+d x))^{-m} (a+a \sin (c+d x))^m\right ) \operatorname{Subst}\left (\int \left (\frac{x}{a}\right )^n \left (1+\frac{x}{a}\right )^m \, dx,x,a \sin (c+d x)\right )}{a d}\\ &=\frac{\, _2F_1(-m,1+n;2+n;-\sin (c+d x)) \sin ^{1+n}(c+d x) (1+\sin (c+d x))^{-m} (a+a \sin (c+d x))^m}{d (1+n)}\\ \end{align*}
Mathematica [A] time = 0.0799043, size = 61, normalized size = 1.13 \[ \frac{(\sin (c+d x)+1)^{-m} \sin ^{n+1}(c+d x) (a \sin (c+d x)+a)^m \, _2F_1(-m,n+1;n+2;-\sin (c+d x))}{d (n+1)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 3.917, size = 0, normalized size = 0. \begin{align*} \int \cos \left ( dx+c \right ) \left ( \sin \left ( dx+c \right ) \right ) ^{n} \left ( a+a\sin \left ( dx+c \right ) \right ) ^{m}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (a \sin \left (d x + c\right ) + a\right )}^{m} \sin \left (d x + c\right )^{n} \cos \left (d x + c\right )\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left ({\left (a \sin \left (d x + c\right ) + a\right )}^{m} \sin \left (d x + c\right )^{n} \cos \left (d x + c\right ), x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (a \sin \left (d x + c\right ) + a\right )}^{m} \sin \left (d x + c\right )^{n} \cos \left (d x + c\right )\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]